//
//  WANavigationBar.m
//
//  WoW Atlas, a World of Warcraft instance map, loot, and achievement browser.
//  Copyright 2010 Steven Mattera <stevenmattera@gmail.com>
//
//	Special Thanks to Dan Gilbert and the Atlas/Atlasloot Team.
//
//	WoW Atlas is free software; you can redistribute it and/or modify
//	it under the terms of the GNU General Public License as published by
//	the Free Software Foundation; either version 2 of the License, or
//	(at your option) any later version.
//
//	WoW Atlas is distributed in the hope that it will be useful,
//	but WITHOUT ANY WARRENTY; without even the implied warrenty of
//	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
//	GNU General Public License for more deails.
//
//	You should have received a copy of the GNU General Public License
//	along with WoW Atlas; if not, write to the Free Software
//	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
//

#import "WANavigationBar.h"

@implementation WANavigationBar

- (id)initWithFrame:(CGRect)frame {
	if (self = [super initWithFrame:frame]) {
		[self setBackgroundColor:[UIColor colorWithWhite:0.078431373f alpha:1.0f]];
	}
	
	return self;
}

- (void)drawRect:(CGRect)rect {
	CGContextRef context = UIGraphicsGetCurrentContext();
	
	CGContextSetGrayFillColor(context, 0.21960784f, 1.0f);
	CGContextSetGrayStrokeColor(context, 0.28235294f, 1.0f);
	CGContextSetLineWidth(context, 1.0f);
		
	CGContextBeginPath(context);
	CGContextAddRoundRect(context, CGRectMake(1.0f, 1.0f, self.frame.size.width-2.0f, self.frame.size.height-2.0f), 2.0f);
	CGContextDrawPath(context, kCGPathFillStroke);
}

- (void)dealloc {
	[super dealloc];
}

@end
